﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Acme.Sakila.EFDAL;

namespace Acme.Sakila.TestSite.Objects
{
	public class DataSavingEventArgs : System.EventArgs
	{
		/// <summary>
		/// The context used for saving
		/// </summary>
		public SakilaEntities Context { get; set; }
		
		/// <summary>
		/// If the saving should be cancelled set this to true
		/// </summary>
		public bool Cancel { get; set; }

		/// <summary>
		/// Determines the error to display if saving was cancelled
		/// </summary>
		public string ErrorMessage { get; set; }
	}

}